<include file="App/Admin/View/Public/left.html"/>
<div class="admin">
<div class="panel admin-panel">
  <div class="panel-head"><strong class="icon-reorder"> 产品中心</strong></div>
  <div class="padding border-bottom">  
  <a href="{:U('Product/insert')}"><button type="submit" class="button border-yellow"><span class="icon-plus-square-o"></span> 添加产品 </button></a>
  </div>
  <table class="table table-hover text-center">
    <tr>
      <th width="6%">产品图片</th>
      <th width="6%">产品名称</th>
	  <th width="6%">关键词</th>
      <th width="8%">产品类别</th>
	  <th width="8%">显示位置</th>
      <th width="25%">产品详情</th>
	  <th width="10%">添加时间</th>
	  <th width="5%">状态</th>
      <th width="20%">操作</th>
    </tr>
   <volist name="list" id="vo">
    <tr>     
      <td><img src="{$vo.pic}" alt="" width="120" height="50" /></td> 	  
      <td>{$vo.title}</td>
	  <td>{$vo.keywords}</td>
      <td>{$vo.tname}</td>
	   <td>{$vo.pname}</td>
      <td><div style="overflow: auto;  height:100px;">{$vo.content}</div></td>
	  <td>{$vo.add_time|date='Y-m-d H:i:s',###}</td>
      <td>
	  	<eq name="vo.status" value="2">
		隐藏
		<else/>
		显示
		</eq>
	  </td>
      <td>
		
		<div class="button-group">	<a class="button border-blue" href="{:U('Product/insert',array('id'=>$vo['id']))}"><span class="icon-edit text-blue"></span> 修改</a> </div>
		<div class="button-group">	<a class="button border-red" href="{:U('Product/delete',array('id'=>$vo['id']))}"><span class="icon-trash-o"></span> 删除</a></div>
		<div class="button-group">	<a class="button border-green" href="{:U('Product/open',array('id'=>$vo['id']))}"><span class="icon-edit text-green"></span>
			<eq name="vo.status" value="2">显示<else /> 隐藏</eq></a> </div>
		  
	</td>
    </tr>
	
    </volist>

  </table>
  
</div>
<div class="pagelist">{$page} </div>
	</body>
</html>